<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Parser.html">
<link rel="next" href="Print_syntaxtree.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Commands" rel="Chapter" href="Commands.html">
<link title="Declaration" rel="Chapter" href="Declaration.html">
<link title="Exceptions" rel="Chapter" href="Exceptions.html">
<link title="Expressions" rel="Chapter" href="Expressions.html">
<link title="Intermediate" rel="Chapter" href="Intermediate.html">
<link title="Lexer" rel="Chapter" href="Lexer.html">
<link title="Main" rel="Chapter" href="Main.html">
<link title="Parser" rel="Chapter" href="Parser.html">
<link title="Print" rel="Chapter" href="Print.html">
<link title="Print_syntaxtree" rel="Chapter" href="Print_syntaxtree.html">
<link title="Semantic" rel="Chapter" href="Semantic.html">
<link title="Subroutines" rel="Chapter" href="Subroutines.html">
<link title="Syntaxtree" rel="Chapter" href="Syntaxtree.html">
<link title="Target" rel="Chapter" href="Target.html"><title>Print</title>
</head>
<body>
<div class="navbar"><a href="Parser.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Print_syntaxtree.html">Next</a>
</div>
<center><h1>Module <a href="type_Print.html">Print</a></h1></center>
<br>
<pre><span class="keyword">module</span> Print: <code class="code">sig</code> <a href="Print.html">..</a> <code class="code">end</code></pre>Contains the function to print the intermediate code into an output channel<br>
<hr width="100%">
<br>
Contains the function to print the intermediate code into an output channel<br>
<pre><span class="keyword">val</span> <a name="VALprint_instcode"></a><a href="code_VALPrint.print_instcode.html">print_instcode</a> : <code class="type"><a href="Intermediate.html#TYPEinst_type">Intermediate.inst_type</a> -> Pervasives.out_channel -> unit</code></pre><div class="info">
Prints on the provided channel the selected instruction type<br>
</div>
<div class="param_info"><code class="code">inst</code> : The instruction code</div>
<div class="param_info"><code class="code">out</code> : The output stream</div>
<pre><span class="keyword">val</span> <a name="VALstring_of_value"></a><a href="code_VALPrint.string_of_value.html">string_of_value</a> : <code class="type"><a href="Intermediate.html#TYPEvalue">Intermediate.value</a> -> string</code></pre><div class="info">
Converts a value into a string<br>
<b>Returns</b> The string conversion of the value<br>
</div>
<div class="param_info"><code class="code">v</code> : A value</div>
<pre><span class="keyword">val</span> <a name="VALprint_element"></a><a href="code_VALPrint.print_element.html">print_element</a> : <code class="type"><a href="Intermediate.html#TYPEelement">Intermediate.element</a> -> Pervasives.out_channel -> unit</code></pre><div class="info">
Prints on the provided channel the selected element<br>
</div>
<div class="param_info"><code class="code">e</code> : The element to print</div>
<div class="param_info"><code class="code">out</code> : The output channel</div>
<pre><span class="keyword">val</span> <a name="VALprint_instruction"></a><a href="code_VALPrint.print_instruction.html">print_instruction</a> : <code class="type"><a href="Intermediate.html#TYPEinstruction">Intermediate.instruction</a> -> Pervasives.out_channel -> unit</code></pre><div class="info">
Takes an instruction and print it our into the provided channel<br>
</div>
<div class="param_info"><code class="code">(inst,e1,e2,e3)</code> : <code>e3</code> : The third element of the instruction<br>
<code>e2</code> : The second element of the instruction<br>
<code>e1</code> : The first element of the instruction<br>
<code>inst</code> : The instruction code to print</div>
<div class="param_info"><code class="code">out</code> : The output channel</div>
<pre><span class="keyword">val</span> <a name="VALprint_ICode"></a><a href="code_VALPrint.print_ICode.html">print_ICode</a> : <code class="type">Pervasives.out_channel -> <a href="Intermediate.html#TYPEinstruction">Intermediate.instruction</a> list -> unit</code></pre><div class="info">
Prints the list of instructions<br>
</div>
<div class="param_info"><code class="code">out</code> : The output channel</div>
<div class="param_info"><code class="code">ic</code> : The instruction list</div>
<pre><span class="keyword">val</span> <a name="VALdumpDecTable"></a><a href="code_VALPrint.dumpDecTable.html">dumpDecTable</a> : <code class="type">Pervasives.out_channel -><br>       <a href="Syntaxtree.html#TYPEide">Syntaxtree.ide</a> -> int * int * <a href="Intermediate.html#TYPEelement">Intermediate.element</a> -> unit</code></pre><div class="info">
Prints one bind of an Hashtable<br>
</div>
<div class="param_info"><code class="code">out</code> : The output channel</div>
<div class="param_info"><code class="code">(a,b,c)</code> : <code>c</code> : The third element of the value binded with the ide into the table<br>
<code>b</code> : The second element of the value binded with the ide into the table<br>
<code>a</code> : The first element of the value binded with the ide into the table</div>
<pre><span class="keyword">val</span> <a name="VALprint_DecTable"></a><a href="code_VALPrint.print_DecTable.html">print_DecTable</a> : <code class="type">Pervasives.out_channel -> <a href="Intermediate.html#TYPEdec_table">Intermediate.dec_table</a> -> unit</code></pre><div class="info">
Calls the dumpDecTable for all the declarations table<br>
</div>
<div class="param_info"><code class="code">out</code> : The output channel</div>
<div class="param_info"><code class="code">dect</code> : The declarations table</div>
</body></html>